<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */
?>
<?php echo "<?php \$form=\$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl(\$this->route),
	'method'=>'get',
	'htmlOptions'=>array(
		'class' => 'form collapsed',
	),
)); ?>\n"; ?>
<fieldset class="grey inline">
  <legend><?php echo "<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>"; ?></legend>
<?php foreach($this->tableSchema->columns as $column): ?>
<?php
	$field=$this->generateInputField($this->modelClass,$column);
	if(strpos($field,'password')!==false)
		continue;
?>
<?php echo "<?php echo \$form->label(\$model,'{$column->name}'); ?>\n"; ?>
<label><?php echo "<?php echo ".$this->generateActiveField($this->modelClass,$column)."; ?>\n"; ?></label>
<?php endforeach; ?>
<?php echo "<?php echo CHtml::submitButton('Search',array('class'=>'button blue small')); ?>\n"; ?>
</fieldset>
<?php echo "<?php \$this->endWidget(); ?>\n"; ?>